package com.dkm.biz.gl.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.gl.domain.EavValue;
import com.dkm.biz.gl.persistence.dao.EavValueQueryDao;
import com.dkm.biz.gl.persistence.entity.EavValuePo;
import com.dkm.biz.gl.repository.EavValueRepository;
import com.dkm.biz.repository.AbstractRepository;

/**
 * 对象功能:c6_eav_value Repository接口的实现类
 * 开发公司:唯心六艺软件 - Craft6.cn
 * 开发人员:winston
 * 创建时间:2014-07-30 16:23:07
 */
@Repository
public class EavValueRepositoryImpl extends AbstractRepository<String, EavValuePo,EavValue> implements EavValueRepository{
	  
	@Resource
	private  EavValueQueryDao eavValueQueryDao;

	public EavValue newInstance() {
		EavValuePo po = new EavValuePo();
		EavValue eavValue = SpringHelper.getBean(EavValue.class);
		eavValue.setData(po);
		return eavValue;
	}

	public EavValue newInstance(EavValuePo po) {
		EavValue eavValue = SpringHelper.getBean(EavValue.class);
		eavValue.setData(po);
		return eavValue;
	} 
	
	@Override
	protected IQueryDao<String, EavValuePo> getQueryDao() {
		return eavValueQueryDao;
	}
	
}
